<template>
  <div id="app">
    <div class="page-wrap">

      <mt-tab-container class="page-tabbar-container" v-model="selected">
        <mt-tab-container-item id="首页">
         <index></index>
        </mt-tab-container-item>
        <mt-tab-container-item id="发现">
          <mt-cell v-for="n in 5" :title="'发现 ' + n" />
        </mt-tab-container-item>
        <mt-tab-container-item id="新鲜">
          <mt-cell v-for="n in 7" :title="'新鲜 ' + n" />
        </mt-tab-container-item>
        <mt-tab-container-item id="我的">
          <mt-cell v-for="n in 7" :title="'我的 ' + n" />
        </mt-tab-container-item>
      </mt-tab-container>
    </div>

    <mt-tabbar v-model="selected" fixed>
      <mt-tab-item id="首页">
        <img slot="icon" src="./assets/100x100.png">
        首页
      </mt-tab-item>
      <mt-tab-item id="发现">
        <img slot="icon" src="./assets/100x100.png">
        发现
      </mt-tab-item>
      <mt-tab-item id="新鲜">
        <img slot="icon" src="./assets/100x100.png">
        新鲜
      </mt-tab-item>
      <mt-tab-item id="我的">
        <img slot="icon" src="./assets/100x100.png">
        我的
      </mt-tab-item>
    </mt-tabbar>
  </div>
</template>

<script>
  import index from './components/index.vue'
  export default {
  name: 'app',
  data () {
    return {
      msg: 'Welcome to Your Vue.js App',
      selected:"首页"
    }
  },
  methods: {
    startHacking () {
      this.$toast('It Works!')
    }
  },
  components: { index }
}
</script>

<style>
#app {
  font-family: 'Avenir', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}

h1, h2 {
  font-weight: normal;
}

ul {
  list-style-type: none;
  padding: 0;
}

li {
  display: inline-block;
  margin: 0 10px;
}

a {
  color: #42b983;
}




</style>
